import request from '@/utils/request'

// 查询出入库分类字典表列表 (分页)
export function selectPageMaterialInoutClass(query) {
    return request({
        url: '/material/materialInoutClass/selectPage',
        method: 'get',
        params: query
    })
}

// 查询出入库分类字典表列表 (不分页)
export function listMaterialInoutClass(query) {
    return request({
        url: '/material/materialInoutClass/list',
        method: 'get',
        params: query
    })
}

// 根据科室id 出入库类型获取库房对应的出入库方式
export function getStoreroomDistinguish(query) {
    return request({
        url: '/material/materialInoutClass/getStoreroomDistinguish',
        method: 'get',
        params: query
    })
}

// 查询出入库分类字典表详细
export function getMaterialInoutClass(id) {
    return request({
        url: '/material/materialInoutClass/' + id,
        method: 'get'
    })
}

// 新增出入库分类字典表
export function addMaterialInoutClass(data) {
    return request({
        url: '/material/materialInoutClass',
        method: 'post',
        data: data
    })
}

// 修改出入库分类字典表
export function updateMaterialInoutClass(data) {
    return request({
        url: '/material/materialInoutClass',
        method: 'put',
        data: data
    })
}

// 删除出入库分类字典表
export function delMaterialInoutClass(id) {
    return request({
        url: '/material/materialInoutClass/' + id,
        method: 'delete'
    })
}
